#!/bin/sh
rm -f config.h
cat > config.h << EOM
/* USE_SOCKLEN:
 *      This symbol is defined if this system has a sockaddr structure declaring
 *      sa_len in sys/socket.h.
 */
EOM
if grep sa_len /usr/include/sys/socket.h > /dev/null; then
   echo '#define USE_SOCKLEN     /**/' >> config.h
else
   echo '/*#define USE_SOCKLEN     /**/' >> config.h
fi
cat >> config.h << EOM
#if defined( __alpha) || defined(__mips64)
#define _SOCKADDR_LEN
#define long int
#define u_long unsigned int
#endif
EOM
